
package org.ruiyichen.guizhou.agr.config;

/**
 * 配置常量类
 * 作者：吴添
 * 邮箱：wutian8489@foxmail.com
 */
public interface Constant {


    boolean isAgile = false;

    interface Http {
        /**
         * 与 GET 相同，但只返回 HTTP 报头，不返回文档主体。
         */
        int HEAD = 0;
        /**
         * 上传指定的 URI 表示。
         */
        int PUT = 1;
        /**
         * 删除指定资源
         */
        int DELETE = 2;
        /**
         * 返回服务器支持的 HTTP 方法。
         */
        int OPTIONS = 3;
        /**
         * 把请求连接转换到透明的 TCP/IP 通道。
         */
        int CONNECT = 4;
        /**
         * postString
         */
        int POSTSTRING = 5;
        /**
         * postString
         */
        int POST = 6;
        /**
         * GET
         */
        int GET = 7;
    }

    interface App {
        String WX_APP_ID = "wx7e7bf8da5f8f2e38";

        String TENCENT_APP_ID = "1104233477";

        /**
         * 是否为测试 true，测试版本
         */
        boolean IS_DEBUG = true;

        String EMPLOYEE_RULE = "CNJW";
    }


    interface ParamKey {
        String IRRIGATED_AREA = "IrrigatedArea";
    }

    interface Message {
        /**
         * 图片下载完成
         */
        int IMAGE_DOWN = 100;


    }

    interface Broadcast {
        /**
         * 广播
         */
        String MY_BROADCAST = "org.ruiyichen.guizhou.MY_BROADCAST";
    }

    interface RefreshRelated {
        /**
         * 刷新
         */
        int REFRESH = 1;
        /**
         * 加载更多
         */
        int LOADMORE = 2;
        /**
         * 加载条数
         */
        String PAGE_SIZE = "10";
    }

    /**
     * 界面动作
     *
     * @author wu_tian
     */
    interface ActionDo {
    }

    interface UI {
        /**
         * 刷新
         */
        int REFRESH_WEBVIEW = 2001;

    }

    interface DB {

        /**
         * 屏蔽群主直播
         */
        String SLIVE = "slive";

    }

    interface File {

        String USER_INFO = "userInfo";

        String DEFAULT_FOLDER = "Indiana";

        /**
         * ----------------------图片缓存----------------------------
         */
        String PICTURE_DIR = "Indiana/Cache";

    }

    interface Share {
        /**
         * 1:分享qq好友;
         */
        int QQ_FRIEND = 1;
        /**
         * 2:分享qq空间;
         */
        int QQ_ZONE = 2;
        /**
         * 3:分享微信好友;
         */
        int WX_FRIEND = 3;
        /**
         * 4:分享微信朋友圈;
         */
        int WX_ZONE = 4;

        String SHARE_TITLE = "title";

        String SHARE_IMAGE = "image";

        String SHARE_URL = "url";

        String SHARE_CONTENT = "content";
    }


    interface RequestDo {
        /**
         * 测试
         */
        String HTTP_8084 = "http://121.199.45.128/prod-api/";
        /**
         * 正式HTTPS
         */
//        String HTTP_8084 = "http://data.nongyebx.cn/guizhouagr";

        /**
         * 发送验证码
         */
        String SEND_MESSAGE = HTTP_8084 + "/login/sendMessage";
        /**
         * 查询灌区列表
         */
        String GET_IRRIGATED_LIST = HTTP_8084 + "app/asset/irrig/list";
        /**
         * 登录接口
         */
        String GET_LOGIN_IN = HTTP_8084 + "app/login";
        /**
         * 控制-删除灌区
         * http://121.199.45.128/prod-api/app/asset/irrig/delelteIrrigs?irrigId=1
         */
        String UPDATE_DELETE_IRRIG = HTTP_8084 + "app/asset/irrig/delelteIrrigs";
        /**
         * 查询所有地块
         * http://121.199.45.128/prod-api/app/asset/lands/selectLandsAll
         */
        String GET_ALL_LANDS = HTTP_8084 + "app/asset/lands/selectLandsAll";
        /**
         * 控制-默认区域
         * http://121.199.45.128/prod-api/app/asset/devices/selectDevicesByIrrigId?irrigId=1
         */
        String GET_DEVICES_BY_IRRIGID = HTTP_8084 + "app/asset/devices/selectDevicesByIrrigId";
        /**
         * 控制-新建灌区
         * http://121.199.45.128/prod-api/app/asset/irrig/addIrrigs
         */
        String UPDATE_ADD_IRRIGID = HTTP_8084 + "app/asset/irrig/addIrrigs";
        /**
         * 控制-灌溉计划(修改灌区)
         * http://121.199.45.128/prod-api/app/asset/irrig/updateIrrigs
         */
        String UPDATE_IRRIGS_PLAN = HTTP_8084 + "app/asset/irrig/updateIrrigs";
        /**
         * 查询监测-采集设备
         * http://121.199.45.128/prod-api/app/monitorCenter/state/selectStateAll
         */
        String SELECT_STATE_ALL = HTTP_8084 + "app/monitorCenter/state/selectStateAll";
        /**
         * 首页接口-实时监测数据
         * http://121.199.45.128/prod-api/app/monitorCenter/state/selectLatestState
         */
        String SELECT_LATEST_STATE = HTTP_8084 + "app/monitorCenter/state/selectLatestState";
        /**
         * 首页天气
         * http://121.199.45.128/prod-api/app/monitorCenter/state/getTianQi
         */
        String GET_TIAN_QI = HTTP_8084 + "app/monitorCenter/state/getTianQi";
        /**
         * 首页-设备控制状态
         * http://121.199.45.128/prod-api/app/asset/devices/selectDeviceStateNumber
         */
        String SELECT_DEVICE_STATE_NUMBER = HTTP_8084 + "app/asset/devices/selectDeviceStateNumber";
        /**
         * 监测 - 控制设备
         * http://121.199.45.128/prod-api/app/asset/devices/selectDeviceState
         */
        String SELECT_DEVICE_STATE = HTTP_8084 + "app/asset/devices/selectDeviceState";
        /**
         * 敏捷版-查询监控
         * http://121.199.45.128/prod-api/app/monitorCenter/state/selectLatestStateByMacAddress
         */
        String SELECT_LATEST_STATE_BY_MAC = HTTP_8084 +
                "app/monitorCenter/state/selectLatestStateByMacAddress";
        /**
         * 敏捷版-查询监控详情
         * http://121.199.45.128/prod-api/app/monitorCenter/state/selectStateByCreateTime?macAddress=AABBCCDDEEFF
         */
        String SELECT_STATE_BY_CREATE_TIME = HTTP_8084 +
                "app/monitorCenter/state/selectStateByCreateTime";

        /**
         * 展会用-自动灌溉系统
         * http://123.56.227.182/prod-api/app/apply/manual/boothMode?mode=1&highLevel=&lowLevel=5
         */
        String BOOTH_MODE = "http://123.56.227.182/prod-api/app/apply/manual/boothMode";



    }

    interface RequestType {
        /**
         * 发送验证码
         */
        int SEND_MESSAGE = 1001;
        /**
         * 查询灌区列表
         */
        int GET_IRRIGATED_LIST = 1002;
        /**
         * 登录接口
         */
        int GET_LOGIN_IN = 1003;
        /**
         * 控制-删除灌区
         */
        int UPDATE_DELETE_IRRIG = 1004;
        /**
         * 查询所有地块
         */
        int GET_ALL_LANDS = 1005;
        /**
         * 控制-默认区域
         */
        int GET_DEVICES_BY_IRRIGID = 1006;
        /**
         * 控制-新建灌区
         */
        int UPDATE_ADD_IRRIGID = 1007;
        /**
         * 控制-灌溉计划(修改灌区)
         */
        int UPDATE_IRRIGS_PLAN = 1008;
        /**
         * 查询监测-采集设备
         * http://121.199.45.128/prod-api/app/monitorCenter/state/selectStateAll
         */
        int SELECT_STATE_ALL = 1009;
        /**
         * 首页接口-实时监测数据
         */
        int SELECT_LATEST_STATE = 1010;
        /**
         * 首页天气
         * http://121.199.45.128/prod-api/app/monitorCenter/state/getTianQi
         */
        int GET_TIAN_QI = 1011;
        /**
         * 首页-设备控制状态
         * http://121.199.45.128/prod-api/app/asset/devices/selectDeviceStateNumber
         */
        int SELECT_DEVICE_STATE_NUMBER = 1012;
        /**
         * 监测 - 控制设备
         * http://121.199.45.128/prod-api/app/asset/devices/selectDeviceState
         */
        int SELECT_DEVICE_STATE = 1013;
        /**
         * 首页-查询监控
         * http://121.199.45.128/prod-api/app/monitorCenter/state/selectLatestStateByMacAddress
         */
        int SELECT_LATEST_STATE_BY_MAC = 1014;
        /**
         * 敏捷版-查询监控详情
         * http://121.199.45.128/prod-api/app/monitorCenter/state/selectStateByCreateTime?macAddress=AABBCCDDEEFF
         */
        int SELECT_STATE_BY_CREATE_TIME = 1015;
        /**
         * 展会用-自动灌溉系统
         * http://123.56.227.182/prod-api/app/apply/manual/boothMode?mode=1&highLevel=&lowLevel=5
         */
        int BOOTH_MODE = 1016;
    }
}
